<template>
  <div class="shuzijiaoyi">
    <div
      class="samlldiv"
      :class="[activenum ? 'animate__animated  animate__fadeInDown' : '']"
      v-if="active"
    >
      <Szjydialogfirst />
    </div>
    <div class="samlldiv animate__animated animate__fadeInUp" v-else>
      <Szjydialogfirstsecond />
    </div>

    <div
      v-if="active"
      class="bottonshuzipopupdown"
      @click="qiehuan(0)"
      id="shuzijiaoyipopupbottomdown"
    >
      <img
        src="../assets/shuzijiaoyipopupbottomdown.png"
        style="width: 1.5rem; height: 1.2rem"
      />
    </div>
    <div
      v-else
      class="bottonshuzipopuptop"
      @click="qiehuan(1)"
      id="shuzijiaoyipopupbottomup"
    >
      <img
        src="../assets/shuzijiaoyipopupbottomup.png"
        style="width: 1.5rem; height: 1.2rem"
      />
    </div>
  </div>
</template>

<script>
import Szjydialogfirst from "@/components/szjydialogfirst.vue";
import Szjydialogfirstsecond from "@/components/szjydialogfirstsecond.vue";
export default {
  name: "szjydialog",
  components: { Szjydialogfirst, Szjydialogfirstsecond },
  props: {},
  data() {
    return {
      active: true,
      activenum: 0,
    };
  },
  mounted() {
    this.$store.state.imgurlsel = require('@/assets/imgs/yellowdownsanjiao.png')
  },
  methods: {
    qiehuan(index) {
      this.activenum++;
      if (index == 0) {
        this.active = false;
      } else {
        this.active = true;
      }
    },
  },
};
</script>

<style scoped lang="scss">
.shuzijiaoyi {
  width: 98%;
  box-sizing: border-box;
  margin: 0 auto;
  height: 100%;
  position: relative;
  scroll-behavior: smooth;
  overflow: hidden;
  font-size: 1rem;

  .lengend1 {
    height: 5%;
    display: flex;
    align-items: center;
    margin-left: 14%;
    font-size: 18px;
    .lengend1small {
      display: flex;
      align-items: center;
      margin-right: 1%;
      .lengend1smalldiv {
        width: 23px;
        height: 10px;
        background-color: #182c56;
        border-radius: 2px;
      }
    }
  }
  .lengend2 {
    display: flex;
    align-items: center;
    .lengend2small {
      width: 23px;
      height: 3px;
      background: linear-gradient(90deg, #ffc346, #b3001e, #ffc346);
      border-radius: 2px;
    }
  }

  .lenged3 {
    width: 46%;
    margin-left: 30%;
    position: absolute;
    bottom: -0.7rem;
    left: 14%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    .lenged3small {
      display: flex;
      align-items: center;
      .lenged3smalldiv {
        width: 23px;
        height: 10px;
        background-color: #182c56;
        border-radius: 2px;
        font-size: 0.8rem;
      }
    }
  }
  .bottomdiv {
    height: 49%;
    display: flex;
    .bottomdivsmall {
      height: 100%;
      width: 50%;
    }
  }
  .szjyleftbottomechartheight {
    height: 90%;
    display: flex;
    justify-content: space-around;
    .szjyleftbottomechartheightsmall {
      padding-top: 8%;
      padding-left: 2%;
      .szjyleftbottomechartheightsmalltopdetail1 {
        width: 100%;
        height: 37%;
      }
    }
  }
  .mainbigtopdiv2 {
    width: 98%;
    height: 20%;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    border: 0.05rem solid #192c55;
    margin: 0 auto;
    border-radius: 0.25rem;
    margin-top: 3%;
    margin-bottom: 3%;
    .topdetail2 {
      height: 100%;
      width: 15%;
      display: flex;
      align-items: center;
      justify-content: space-around;
      .topdetail2div {
        height: 100%;
      }
    }
  }
  .leftleft {
    height: 52%;
    width: 98%;
    display: flex;
    margin: 0 auto;
    .mainbigtopdiv {
      width: 45%;
      height: 100%;
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      border: 0.05rem solid #192c55;
      border-radius: 0.25rem;
      padding-top: 3%;
      padding-bottom: 3%;
      box-sizing: border-box;
      .shuzijiaoyilefttop {
        font-size: 0.75rem;
        height: 50%;
        width: 50%;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #192c55;
        margin-right: 0.25rem;
        background: rgba(25, 44, 85, 0.2);
        border-radius: 0 0 0.25rem 0.25rem;
      }
      .shuzijiaoyilefttopbg {
        background-color: #162a54;
        color: white;
      }
      .topdetail1 {
        height: 50%;
        width: 33%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        .topdetail2div {
          height: 100%;
        }
      }
    }
    
  }
  .maindivsamll {
    width: 100%;
    height: 100%;
    .szjytitle {
      display: flex;
      align-items: center;
      .szjytitletext {
        width: 0px;
        height: 0.95rem;
        border: 0.1rem solid #192c55;
        margin-right: 0.25rem;
      }
    }
  }
}
</style>
 

